text: Prevent unexpected notify::direction emissions
authorMatthias Clasen <mclasen@redhat.com>
Fri, 25 Nov 2022 12:59:35 +0000 (07:59 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 14 Dec 2022 12:25:30 +0000 (07:25 -0500)
commit88c6c55d3a2336df63fce3140fd8a6c2053855f0
tree3a69eb9a51d6f72e5302082a4c78fe6722eaa6be
parentc7185c65c9b33e7a1933e5112dbb3dd640e42ed2
text: Prevent unexpected notify::direction emissions

Calling gdk_device_get_direction can trigger a
notify::direction emissions, since the X11 backend
determines the direction on demand. Prevent that by
forcing the direction to be determined ahead of time.

Fixes: #5311
gtk/gtktext.c